package com.fruit.configserver;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.config.server.EnableConfigServer;

@SpringBootApplication
@EnableDiscoveryClient
@EnableConfigServer
public class FruitConfigServerApplication {
    private final static Logger logger = LoggerFactory.getLogger(FruitConfigServerApplication.class);

    public static void main(String[] args) {
        SpringApplication.run(FruitConfigServerApplication.class, args);
        logger.info("统一配置中心 启动成功");
    }
}
